package com.neuedu.mvc.controller;

import com.neuedu.mvc.entity.Dept;
import com.neuedu.mvc.entity.Doctor;
import com.neuedu.mvc.vo.DoctorVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletResponse;

/**
 * 项目：      spring-framework
 * 类名:       DoctorController
 * 创建时间：  2024/3/19 14：51
 * 描述 :
 * 作者 :     张金山
 * QQ :     314649444
 * Site:      https://jshand.gitee.io
 */
@Controller
@RequestMapping("doctor")
public class DoctorController {


    /**
     *
     *  <input type="text" name="doctor.id" value=""/>
     *  <input type="text" name="doctor.name" value=""/>
     *
     *  <input type="text" name="dept.id" value=""/>
     *  <input type="text" name="dept.name" value=""/>
     *
     *
     * http://localhost:8080/web/doctor/update?doctor.id=1&doctor.name=222&dept.id=456&dept.name=DEV
//     * @param doctor
     * @param vo
     */
    @RequestMapping("update")
//    public void save(Doctor doctor, Dept dept , HttpServletResponse response){
    public void save(DoctorVo vo , HttpServletResponse response){
        System.out.println("vo = " + vo);
    }






}
